package com.ljy.my_study.java8.Paths;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

/** 
* @author James
* @date 2018年11月28日 
*/
public class PathsTestMain {
	public static void main(String[] args) {
		Path path=Paths.get("C:\\Users\\hasee\\Desktop\\新建文件夹 (2)");
		System.out.println(path.toString());
		path.forEach(p->{
			System.out.println(p.toString());
		});
		Iterator<Path> it=path.iterator();
		while(it.hasNext()) {
			System.out.println(it.next().toString());
		}
		
		List<Path> result = new LinkedList<Path>();
//	    Files.
	    System.out.println("result.size()=" + result.size());  
	}
}
